package com.itheima;

import java.util.Arrays;
//把 lengendary 改成间隔大写小写模式，即 LeNgEnDaRy
public class Change {
    public static void main(String[] args) {
        StringBuilder str = new StringBuilder("complete");
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < str.length(); i++) {
            if (i%2==0){
                char c = (char) (str.charAt(i)-32);
                sb.append(c);
            }else {
                sb.append(str.charAt(i));
            }
        }
        System.out.println(sb);
    }
}
